package com.whmall.service.crm.module.companyuser.impl;

import com.whmall.service.crm.module.companyuser.entity.CompanyUserInformationDO;

/**
 * 公司用户实现类工具
 *
 * @author alex
 * @since 2020/8/3
 */
public abstract class CompanyUserUtils {
    public static boolean isEmptyEntity(CompanyUserInformationDO entity) {
        if (null != entity.getPosition())
            return false;
        if (null != entity.getNotifyBitmap())
            return false;
        if (null != entity.getCustomerLockReason())
            return false;
        if (null != entity.getSupplierLockReason())
            return false;
        if (null != entity.getPurchaserComment())
            return false;
        if (null != entity.getSupplierContact())
            return false;
        if (null != entity.getAvatar())
            return false;

        return true;
    }
}
